<?php


abstract class ME_DAL_LocalMemCacheModule extends ME_DAL_FileCacheModule
{
	/**
	* 初始化处理参数和模块名;
	*/
	public function processParam($cacheParam = array())
	{
		$moduleName = get_class($this);
		if (!($cacheParam instanceof ME_DAL_ICacheKey)) {
			#根据配置文件获取默认KEYMAKER
			$keyMakerName = ME_DAL_Config::getKeyMakerName($moduleName, 'LOCALMEM');
			$keyMaker = new $keyMakerName($moduleName, (array)$cacheParam);
		} else {
			$keyMaker = &$cacheParam;
			$keyMaker->setModuleName($moduleName);
		}
		
		#设置缓存存储类型
		$keyMaker->setCacheSaveType($this->_cacheSaveType);
		
		$this->_cacheParam = $keyMaker->getCacheParam();
		$this->_cachePath  = $keyMaker->getCacheKey();
		
		return $this;
	}
}
